package com.smart.framework.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * <p><b>Description:</b>  TODO
 * <p><b>Company:</b>
 *
 * @author created by Jesse Xu at 16:19 on 2019/9/24
 * @version V0.1
 * @classNmae View
 */
public class View {

    private String path;

    private Map<String,Object> model;

    public View(String path){
        this.path = path;
        model = new HashMap<String, Object>();
    }

    public View addModel(String key,Object value) {
        this.model.put(key,value);
        return this;
    }

    public String getPath() {
        return path;
    }

    public Map<String, Object> getModel() {
        return model;
    }
}
